package org.bmi.gwt.examples.servertoclient.shared;

import org.bmi.gwt.mi.shared.MiObject;

public class ElementObject implements MiObject
{
	private String str;
	private PrinterObject printer;

	public ElementObject()
	{}

	public ElementObject(String str)
	{
		this.str = str;
	}

	public ElementObject(String str, PrinterObject printer)
	{
		this.str = str;
		this.printer = printer;
	}

	public void setStr(String str)
	{
		this.str = str;
	}

	public String getStr()
	{
		return this.str;
	}

	public void setPrinter(PrinterObject printer)
	{
		this.printer = printer;
	}

	public void print()
	{
		this.printer.print(this.str);
	}
}
